
/*
 *    MCreator note: This file will be REGENERATED on each build.
 */
package net.zio.kamenriderzioaddon.init;

import net.zio.kamenriderzioaddon.entity.GeizmajestyspecialeffectsEntity;
import net.zio.kamenriderzioaddon.entity.GeizCompleteSpecialeffectsEntity;
import net.zio.kamenriderzioaddon.KamenRiderZioAddonMod;

import net.minecraftforge.registries.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.event.entity.EntityAttributeCreationEvent;

import net.minecraft.world.entity.MobCategory;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.Entity;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class KamenRiderZioAddonModEntities {
	public static final DeferredRegister<EntityType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.ENTITIES, KamenRiderZioAddonMod.MODID);
	public static final RegistryObject<EntityType<GeizCompleteSpecialeffectsEntity>> GEIZ_COMPLETE_SPECIALEFFECTS = register("geiz_complete_specialeffects",
			EntityType.Builder.<GeizCompleteSpecialeffectsEntity>of(GeizCompleteSpecialeffectsEntity::new, MobCategory.MONSTER).setShouldReceiveVelocityUpdates(true).setTrackingRange(64).setUpdateInterval(3)
					.setCustomClientFactory(GeizCompleteSpecialeffectsEntity::new).fireImmune().sized(0.6f, 1.8f));
	public static final RegistryObject<EntityType<GeizmajestyspecialeffectsEntity>> GEIZMAJESTYSPECIALEFFECTS = register("geizmajestyspecialeffects",
			EntityType.Builder.<GeizmajestyspecialeffectsEntity>of(GeizmajestyspecialeffectsEntity::new, MobCategory.MONSTER).setShouldReceiveVelocityUpdates(true).setTrackingRange(64).setUpdateInterval(3)
					.setCustomClientFactory(GeizmajestyspecialeffectsEntity::new)

					.sized(0.6f, 1.8f));

	private static <T extends Entity> RegistryObject<EntityType<T>> register(String registryname, EntityType.Builder<T> entityTypeBuilder) {
		return REGISTRY.register(registryname, () -> (EntityType<T>) entityTypeBuilder.build(registryname));
	}

	@SubscribeEvent
	public static void init(FMLCommonSetupEvent event) {
		event.enqueueWork(() -> {
			GeizCompleteSpecialeffectsEntity.init();
			GeizmajestyspecialeffectsEntity.init();
		});
	}

	@SubscribeEvent
	public static void registerAttributes(EntityAttributeCreationEvent event) {
		event.put(GEIZ_COMPLETE_SPECIALEFFECTS.get(), GeizCompleteSpecialeffectsEntity.createAttributes().build());
		event.put(GEIZMAJESTYSPECIALEFFECTS.get(), GeizmajestyspecialeffectsEntity.createAttributes().build());
	}
}
